Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+UPSND sent to poll activation status #10636

Merged
merged 4 commits into from May 23, 2019
Merged

Conversation

bqam-ublox
Copy link
Contributor

Description

This pull request updates the context activation using the +UPSND AT command. Previously, the context status was updated immediately after activating the context (without verifying if it was activated successfully).

+UPSND command responds with the status of the context activation. The status is polled every 5s with a max timeout of 180s.

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

Release Notes

@ciarmcom
Copy link
Member

@bqam-ublox, thank you for your changes.
@ARMmbed/mbed-os-wan @ARMmbed/mbed-os-maintainers please review.

Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix coding style (see Travis failures)

@bqam-ublox
Copy link
Contributor Author

@0xc0170 coding style fixed

@@ -192,14 +191,29 @@ bool UBLOX_AT_CellularContext::activate_profile(const char *apn,
if (_at.get_last_error() == NSAPI_ERROR_OK) {
// Activate, wait upto 30 seconds for the connection to be made
_at.set_at_timeout(30000);
_at.cmd_start("AT+UPSDA=0,3");
_at.cmd_start("AT+UPSD=" PROFILE ",6,");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you check UPSDA is dismissed here intentionally?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a mistake! Thanks for pointing out, corrected.

@0xc0170
Copy link
Contributor

0xc0170 commented May 23, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented May 23, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

@0xc0170 0xc0170 merged commit 4567626 into ARMmbed:master May 23, 2019
@bqam-ublox bqam-ublox deleted the activation_status branch May 24, 2019 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants